from django.db import models

# Create your models here.
class Doctor(models.Model):
    uname = models.CharField(max_length=20,null=False)
    truename = models.CharField(max_length=20,null=False)
    pwd = models.CharField(max_length=32,null=False)

class Prescription(models.Model):
    cname = models.CharField(max_length=60,null=False)
    result = models.CharField(max_length=100,null=False)
    hname = models.CharField(max_length=30,null=False)
    doctor = models.ForeignKey(Doctor,on_delete=models.CASCADE)